<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui" template="template.xhtml">
	<ui:define name="main">
		<div class="header header_recados" />
		<h:form prependId="false">
			<p:panel header="#{msgs.enviar_recado}#{msgs.dois_pontos}"
				styleClass="painelCadastro">
				<h:panelGrid columns="1">
					<h:outputLabel value="#{msgs.professores}#{msgs.dois_pontos}" />
					<h:selectOneMenu id="responsaveis"
						value="#{recadosBean.recado.fkProfessor.idprofessor}">
						<f:selectItem itemLabel="SELECIONE" itemValue="0" />
						<f:selectItems
							value="#{dashboardResponsavelBean.alunoSelecionado.matriculaAtual.fkTurma.professorList}"
							var="professor" itemLabel="#{professor.nome}"
							itemValue="#{professor.idprofessor}" />
						<f:validator
							validatorId="br.com.pirralhos.view.validation.ComboValidator" />
						<p:message for="responsaveis" />
					</h:selectOneMenu>
					<h:outputLabel value="#{msgs.recado}#{msgs.dois_pontos}" />
					<p:inputTextarea id="envia_recado"
						style="width:300px;height:100px;" effectDuration="400"
						required="true" value="#{recadosBean.recado.descRecado}">
						<p:message for="envia_recado" />
					</p:inputTextarea>
				</h:panelGrid>
				<h:panelGrid styleClass="painelBotoesLeft" columns="2" width="100%">
					<p:commandButton value="#{msgs.botao_voltar}"
						action="dashboard_responsavel" ajax="false" immediate="true" />
					<h:panelGrid styleClass="painelBotoes">
						<p:commandButton value="#{msgs.botao_enviar_recado}"
							action="#{recadosBean.gravar}" ajax="false" />
					</h:panelGrid>
				</h:panelGrid>
				<h:panelGrid style="height:100px" columns="2">
				</h:panelGrid>
			</p:panel>
		</h:form>

	</ui:define>
</ui:composition>